package com.freemalll.merchant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freemalll.merchant.domain.dto.merchantParameters.ParamQueryDTO;
import com.freemalll.merchant.domain.entity.merchantParameters.MerParams;
import com.freemalll.merchant.domain.vo.merchantParameters.MerParamsListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 映射层。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Mapper
public interface MerParamsMapper extends BaseMapper<MerParams> {

    /**
     * 分页查询参数列表
     *
     * @param page
     * @param paramQueryDTO
     * @return
     */
    Page<MerParamsListVO> pageSearch(Page page, @Param("dto") ParamQueryDTO paramQueryDTO);

    /**
     * 检查参数名称是否存在
     *
     * @param paramCode
     * @param paramName
     * @return
     */
    Boolean existParamName(@Param("paramCode") String paramCode, @Param("paramName") String paramName);
}
